import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.apache.commons.lang.math.RandomUtils;


public class TestSorting {
	
	public static void main(String[] args){
		int fieldSize = 30;
		for(int i = 0; i < 10; i ++){
			for(Integer num : getSortedNumbers()){
				String str = num.toString();
				for(int j = 0; j < fieldSize - str.length(); j ++){
					System.out.print(' ');
				}
				System.out.println(str);
			}
			System.out.println("-----------------------------------------");
		}
	}
	
	public static List<Integer> getSortedNumbers(){
		List<Integer> numbers = new ArrayList<Integer>();
		for(int i = 0; i < 10; i ++){
			numbers.add(RandomUtils.nextInt());
		}
		Collections.sort(numbers);
		return numbers;
		
	}
	
	
}
